package com.study.exception;

import com.study.common.ResultCode;
import lombok.Getter;

/**
 * @Author wfw
 * @Date 2020/07/11 14:57
 */
@Getter
public class CommonException extends RuntimeException {

    private static final long serialVersionUID = 3064038362753878166L;

    private ResultCode code = ResultCode.SERVER_ERROR;

    public CommonException() {
    }

    public CommonException(ResultCode code) {
        super(code.message());
        this.code = code;
    }
}
